package net.hn.hnms.biz.analysis.config;

import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class AnalysisConstant {

    public static final List<String> FILTER_WORDS = Arrays.asList("故障", "报警", "火警");

    public static final List<String> INDUSTRIAL_SITES = Arrays.asList("1号站", "2号站", "3号站", "4号站", "5号站", "6号站");

    public static final List<String> WIND_WELL_SITES = Arrays.asList("11号站", "12号站");

    public static final List<String> TRANSFORMER_SUBSTATION_SITES = Arrays.asList("7号站", "8号站", "9号站", "10号站");

    public static final List<String> NITROGEN_TABLES = Arrays.asList("xbd_xabs_zd1", "xbd_xabs_zd2");

    public static final List<String> ELECTRICAL_CHAMBER = Arrays.asList("xbd_hzxt_fmh", "xbd_hzxt_fmhpanel");


    public static final List<String> YELLOW_MUD_TABLES = Arrays.asList("xbd_xabs_hngj");

    public static final List<String> BELT_TABLES = Arrays.asList("xbd_xsb_pdone", "xbd_xsb_pdtwo");

    public static final List<String> BELT_SITES = Arrays.asList("1区", "2区", "3区", "4区", "5区", "6区", "7区", "8区");

    public static final List<String> INDUSTRIAL_TABLES = Arrays.asList("xbd_xsb_cabling", "xbd_xsb_cabling_35");

    public static final List<String> TRANSFORMER_TABLES = Arrays.asList("xbd_xsb_cabling_36");

    public static final List<String> WIND_WELL_TABLES = Arrays.asList("xbd_xsb_cabling_37");

    public static final List<String> WATER_UNIT_LIST = Arrays.asList("m³/min", "m3/min", "(m3/h)");

    public static final Map<Integer, String> EQUIPMENT_TYPE = new HashMap<Integer, String>() {
        {
            put(0, "采煤机");
            put(1, "采掘机");
            put(2, "皮带运输");
            put(3, "斜井提升");
            put(4, "主通风机");
            put(5, "压风机");
            put(6, "主排水");
            put(7, "瓦斯抽采");
            put(8, "制氮");
        }
    };

    public static final Map<String, String> SENSOR_TYPE_DICT = new HashMap<String, String>() {
        {
            put("0001", "瓦斯");
            put("0002", "风速");
        }
    };

    public static final List<String> WORD_DICT = Arrays.asList("综采", "综放");

    public static class WaterDisasterConstant {
        public static final String WATER = "10";
        // 人为因素
        public static final String WATER_STAFF = "1001";
        // 是否配备防治水副总工程师
        public static final String IS_CHIEF_WATERPROOF_ENGINEER_EXIST = "100101";
        // 防治水人员数量
        public static final String WATERPROOF_ENGINEER_COUNT = "100102";
        // 是否有探放水队伍
        public static final String IS_WATER_RELEASE_TEAM_EXIST = "100103";
        // 防治水知识培训率
        public static final String WATER_PROOF_KNOWLEDGE_TRAINING_RATE = "100104";


        // 设备因素
        public static final String WATER_EQUIPMENT = "1002";
        // 是否配备探放水设备
        public static final String IS_WATER_RELEASE_EQUIPMENT = "100201";
        // 正常泵能力是否满足需求
        public static final String NORMAL_PUMP_CAPACITY = "100202";
        // 备用泵能力是否满足需求
        public static final String STANDBY_PUMP_CAPACITY = "100203";
        // 检修泵能力是否满足需求
        public static final String CHECK_PUMP_CAPACITY = "100204";
        // 排水管路能力是否满足要求
        public static final String DRAINAGE_PIPELINE_CAPACITY = "100205";


        //环境因素
        public static final String WATER_ENVIORMENT = "1003";
        //水文地质类型
        public static final String HYDROGEOLOGICAL_TYPE = "100301";
        //是否有地表水
        public static final String SURFACE_WATER = "100302";
        //是否有断裂构造水和熔岩水
        public static final String FAULT_STRUCTURAL_WATER_AND_KARST_WATER = "100303";
        //是否有老空水
        public static final String OLD_EMPTY_WATER = "100304";
        //电阻率
        public static final String RESISTIVITY = "100305";
        //长观孔水温
        public static final String LONG_VIEW_HOLE_WATER_TEMPERATURE = "100306";
        //长观孔水位
        public static final String LONG_VIEW_HOLE_WATER_LEVEL = "100307";
        //密闭墙水温
        public static final String CLOSED_WALL_WATER_TEMPERATURE = "100308";
        //密闭强水位
        public static final String CLOSED_WALL_WATER_LEVEL = "100309";
        //日累计排水量
        public static final String DAILY_CUMULATIVE_DISCAHRGE = "100310";
        //日最大涌水量
        public static final String MAX_DAILY_WATER_INFLOW = "100311";


        //管理因素
        public static final String WATER_MANAGEMENT = "1004";
        //是否编制防治水年度计划
        public static final String ANNUAL_WATER_CONTROL_PLAN = "100401";
        //是否编制防治水中长期计划
        public static final String LONG_TERM_PLAN_WATER_PREVENTION_AND_CONTROL = "100402";
        //是否设置防治水机构
        public static final String WATER_PREVENTION_CONTROL_ORGANIZATION = "100403";
        //煤矿水害台账完整率
        public static final String INTEGERIRY_RATE_OF_COAL_MINE_WATER_HAZARD_ACCOUNT = "100404";
        //本月是否开展水害隐患排查
        public static final String INVESTIGATION_WATER_HAZAARDS_BY_MONTH = "100405";
        //是否编制水害应急预案
        public static final String WATER_DISASTER_EMERGENCY_PLAN = "100406";
        //本年度是否进行水害应急救援演练
        public static final String EMERGENCY_RESCUSE_DRILL_FOR_WATER_DISASTER_BY_YEAR = "100407";

    }

    public static class FireDisasterConstant {
        //本年度是否进行水害应急救援演练
        public static final String FIRE = "20";
        //矿井人员安全素质
        public static final String STAFF_SAFETY_QUALITY = "2001";
        //煤矿火灾事故安全意识
        public static final String SAFETY_AWARENESS_COAL_MINEFIRE = "200101";
        //火灾救援与自救能力
        public static final String FIRE_RESCUE_SELF_RESCURE_CAPABILITY = "200102";
        //上岗作业资质能力
        public static final String JOB_QUALIFICATION_AND_ABILITY = "200103";
        //内因火灾
        public static final String INTERNAL_FIRE_RISK_LEVEL = "2002";
        //工作面温度
        public static final String COALFACE_TEMPERATURE = "200201";
        //煤的自然倾向性
        public static final String COAL_SPONTANEOUS_COMBUSTION_TENDENCY_LEVEL = "200202";
        //外因火灾
        public static final String EXTERNAL_FIRE_RISK_LEVEL = "2003";
        //温度监测预警
        public static final String TEMPERATURE_MONITOR_EARLY_WARNING = "200301";
        //标志性气体监测预警
        public static final String KEYGAS_MONITOR_EARLY_WARNING = "200302";
        //烟雾监测预警
        public static final String SMOKE_MONITOR_EARLY_WARNING = "200303";
        //火灾安全管理
        public static final String FIRE_SAFETY_MANAGEMENT = "2004";
        //煤矿火灾安全教育培训
        public static final String COALMINE_FIRE_SAFETY_EDUCATION_AND_TRAINING = "200401";
        //管理人员对火灾事故应对能力
        public static final String RESPONSE_ABILITY_TO_FIRE_ACCIDENTS = "200402";
        //火灾事故预防投入
        public static final String FIRE_ACCIDENT_PREVENTION_INVESTMENT = "200403";
    }

    public static class DustDisasterConstant {

        // Dust-related constants
        public static final String DUST = "40";
        public static final String DUST_STAFF = "4001";
        public static final String DUST_EQUIPMENT = "4002";
        public static final String DUST_ENVIRONMENT = "4003";
        public static final String DUST_MANAGEMENT = "4004";

        // Staff-related constants
        public static final String DUST_STAFF_DURATION = "400101"; // 井下接尘时间
        public static final String DUST_STAFF_COUNT = "400102";    // 接尘作业人数

        // Equipment-related constants
        public static final String DUST_REMOVAL_EQUIPMENT_PERCENT = "400201"; // 除尘设备完好率
        public static final String MEASURING_POINTS_COVERAGE = "400202";      // 测点覆盖率
        public static final String MINING_OPERATION_MECHANIZED_DEGREE = "400203"; // 采掘作业机械化程度
        public static final String PROTECTIVE_EQUIPMENT_PERCENT = "400204";   // 防护装备完好率
        public static final String DUST_MONITOR_ONLINE_STATUS = "400205";     // 粉尘监测系统在线率

        // Environment-related constants
        public static final String COAL_DUST_EXPLOSION = "400301";            // 煤尘爆炸性
        public static final String COAL_DUST_ALARM_COUNT = "400302";          // 煤尘报警次数
        public static final String COALFACE_WINDSPEED = "400303";             // 工作面风速

        // Management-related constants
        public static final String DUST_PREVENTION_SYSTEM = "400401";         // 粉尘防治制度
        public static final String DUST_PREVENTION_INSTITUTES = "400402";     // 粉尘防治机构
        public static final String PERSONAL_PROTECTIVE_STATUS = "400403";     // 个人防护发放
        public static final String DUST_EDUCATION_STATUS = "400404";          // 粉尘教育培训
        public static final String DUST_SUPPRESSION_IMPLEMENTED = "400405";   // 降尘措施落实

    }

    public static class GasDisasterConstant {

        // Gas-related constants
        public static final String GAS = "30";
        public static final String GAS_STAFF = "3001";
        public static final String GAS_EQUIPMENT = "3002";
        public static final String GAS_ENVIRONMENT = "3003";
        public static final String GAS_MANAGEMENT = "3004";

        // Staff-related constants
        public static final String EDUCATIONAL_LEVEL = "300101"; // 受教育文化程度
        public static final String AVERAGE_AGE = "300102";       // 平均年龄
        public static final String PERSONAL_TRAINING = "300103"; // 人员培训情况
        public static final String QUALIFIED_RATE_OF_SAFETY_TRAINING_TIME = "300104"; // 安全培训时间合格率
        public static final String OVERCROWDING = "300105";      // 超员情况
        public static final String PROFESSIONAL_ALLOCATION_MANAGEMENT_PERSONNEL = "300106"; // 管理人员专业配备
        public static final String ABNORMAL_LEADERSHIP = "300107"; // 领导带班异常

        // Equipment-related constants
        public static final String MINING_MECHANIZATION_LEVEL = "300201"; // 采掘机械化水平
        public static final String SYSTEM_OPERATION_INTERRUPTION = "300202"; // 系统运转中断问题
        public static final String ANTI_EXPLOSION_FACILITIES = "300203"; // 防隔爆设施情况
        public static final String EXPLOSION_LOSS_RATE_ELECTRICAL_EQUIPMENT = "300204"; // 电气设备
        public static final String LOCAL_FAN_START_STOP = "300205"; // 局部通风机开停
        public static final String WIND_AND_GAS_POWER_LOCKOUT = "300206"; // 风电瓦斯闭锁
        public static final String SENSOR_CALIBRATION_ON_TIME = "300207"; // 传感器按时标校情况

        // Environment-related constants
        public static final String GAS_GEOLOGICAL_CONDITIONS = "300301"; // 瓦斯地质条件
        public static final String GAS_CONCENTRATION = "300302";         // 瓦斯浓度
        public static final String OXYGEN_CONCENTRATION = "300303";      // 氧气浓度
        public static final String TUNNEL_WIND_SPEED = "300304";         // 巷道风速
        public static final String COAL_SEAM_PERMEABILITY = "300305";    // 煤层透气性
        public static final String RELATIVE_GAS_EMISSION = "300306";     // 瓦斯相对涌出量
        public static final String COAL_SEAM_DIP = "300307";            // 煤层倾角
        public static final String COAL_SEAM_THICKNESS_VARIATION_COEFFICIENT = "300308"; // 煤层厚度变异性系数
        public static final String COAL_SEAM_BURIED_DEPTH = "300309";    // 煤层埋深
        public static final String FIRMNESS_COEFFICIENT_COAL_F = "300310"; // 煤的坚固性系数 f
        public static final String GAS_PRESSURE = "300311";             // 瓦斯压力
        public static final String GAS_CONTENT = "300312";              // 瓦斯含量
        public static final String STABLE_ROOF_FLOOR = "300313";        // 顶板稳定度
        public static final String MINE_GAS_GRADE = "300314";           // 矿井瓦斯等级

        // Management-related constants
        public static final String EMERGENCY_MANAGEMENT_MEASURES = "300401"; // 应急管理措施
        public static final String SAFETY_INVESTMENT_FULFILLMENT_RATE = "300402"; // 安全投入兑现率
        public static final String SAFETY_CULTURE_CONSTRUCTION = "300403"; // 安全文化宣传与构建
        public static final String SAFETY_SUPERVISION_MECHANISM = "300404"; // 安全监管监察机制
        public static final String GAS_ACCIDENTS_COUNT = "300405";       // 瓦斯事故次数
        public static final String GAS_OVERLIMIT_COUNT = "300406";       // 瓦斯浓度监测超限次数
        public static final String GAS_OVERLIMIT_UNDONE_COUNT = "300407"; // 瓦斯浓度超限未处理次数
        public static final String MINE_SAFETY_PRODUCTION_LEVEL = "300408"; // 煤矿安全生产标准化等级

    }

    public static class DisasterMessage {
        public static final String EXPERT_MESSAGE = "该指标结果为本矿专家自行研判";
        public static final String NO_DUST_EXPLOSION_MESSAGE = "无煤尘爆炸危险性";
        public static final String DUST_EXPLOSION_MESSAGE = "有煤尘爆炸危险性";
    }


}
